Add forgotten check
authorMatthias Clasen <mclasen@redhat.com>
Mon, 18 Mar 2013 12:28:44 +0000 (08:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 18 Mar 2013 12:50:21 +0000 (08:50 -0400)
We don't want to create titlebar widgets if the window
is not decorated anyway.

gtk/gtkwindow.c

index 953a3fe589de103005aa3dff943340ec6e1e52c6..23b2fc6a1609bacb2d509c0fa9fdf1ab04380112 100644 (file)
@@ -5094,6 +5094,9 @@ create_decoration (GtkWidget *widget)
   if (priv->client_decorated)
     return;
 
+  if (!priv->decorated)
+    return;
+
   if (priv->type == GTK_WINDOW_POPUP)
     return;